package com.inexas.cu.client.mvp;

import java.util.*;
import com.google.gwt.validation.client.interfaces.*;

public interface Property<T> extends Member, IValidatable {

	T getValue();

	void setValue(Source source, T value);

	void setValidationErrors(Source source, List<ValidationError> validationErrors);

	List<ValidationError> getValidationErrors();

	/**
	 * Convenience method that returns true if there are no validation errors
	 * 
	 * @return true if there are no validation errors
	 */
	boolean isValid();

}